
<?php
function ObtenerNavegador($user_agent) {
     $navegadores = array(
          'Opera' => 'Opera',
          'Mozilla Firefox'=> '(Firebird)|(Firefox)',
          'Galeon' => 'Galeon',
          'Mozilla'=>'Gecko',
          'MyIE'=>'MyIE',
          'Lynx' => 'Lynx',
          'Netscape' => '(Mozilla/4\.75)|(Netscape6)|(Mozilla/4\.08)|(Mozilla/4\.5)|(Mozilla/4\.6)|(Mozilla/4\.79)',
          'Konqueror'=>'Konqueror',
		  'Internet Explorer 8' => '(MSIE 8\.[0-9]+)',
          'Internet Explorer 7' => '(MSIE 7\.[0-9]+)',
          'Internet Explorer 6' => '(MSIE 6\.[0-9]+)',
          'Internet Explorer 5' => '(MSIE 5\.[0-9]+)',
          'Internet Explorer 4' => '(MSIE 4\.[0-9]+)',
);
foreach($navegadores as $navegador=>$pattern){
       if (eregi($pattern, $user_agent))
       return $navegador;
    }
return 'Desconocido';
}
?>
<?php $nave=ObtenerNavegador($_SERVER['HTTP_USER_AGENT']);?>


<?php

	//////////////////////////////FUNCION DETECTA SISTEMA OPERATIVO///////////////////
 $titulo1="SISTEMA DE GESTION DE VEHICULOS - AGROPATRIA C.A."; // titulo de la pagina vista en meta para roboot
$codificacion="UTF-8"; // codificacion de la pagina

$lenguaje="es-es"; // lenguaje




$OSList = array 
( 
// Match user agent string with operating systems 
'Windows 3.11' => 'Win16', 
'Windows 95' => '(Windows 95)|(Win95)|(Windows_95)', 
'Windows 98' => '(Windows 98)|(Win98)', 
'Windows 2000' => '(Windows NT 5.0)|(Windows 2000)', 
'Windows XP' => '(Windows NT 5.1)|(Windows XP)', 
'Windows Server 2003' => '(Windows NT 5.2)', 
'Windows Vista' => '(Windows NT 6.0)', 
'Windows 7' => '(Windows NT 7.0)', 
'Windows NT 4.0' => '(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)', 
'Windows ME' => 'Windows ME', 
'Open BSD' => 'OpenBSD', 
'Sun OS' => 'SunOS', 
'Linux' => '(Linux)|(X11)', 
'Mac OS' => '(Mac_PowerPC)|(Macintosh)', 
'QNX' => 'QNX', 
'BeOS' => 'BeOS', 
'OS/2' => 'OS/2', 
'Search Bot'=>'(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves/Teoma)|(ia_archiver)' 
); 
// Loop through the array of user agents and matching operating systems 
foreach($OSList as $CurrOS=>$Match) 
{ 
// Find a match 
if (eregi($Match, $_SERVER['HTTP_USER_AGENT'])) 
{ 
// We found the correct match 
break; 
} 
} 
//echo "tu  sistema operativo es ".$CurrOS; 

///////////////////////////////////////////////FIN/////////////////////////////////////////////////////
if ($CurrOS=='Linux')
{
 $cont_width='159px';
 $hor_width='58px';
 $fot_width='160px';
}else
{
 $cont_width='150px';
 $hor_width='49px';
 $fot_width='151px';
}

?> 







<html>
<head>
<link rel="shortcut icon" href="favicon.ico">
<meta name="keywords" content="<?=$titulo1;?>">
<meta name="description" content=".:::<?=$titulo1;?>::.">
<meta http-equiv="Content-Type" content="text/html; charset=<?=$codificacion;?>" />
<meta name="copyleft" content="(c) <?=$titulo1; ?>">
<meta name="<?=$titulo1; ?>" content="<?=$titulo1; ?>">
<title><?=$titulo1; ?></title>
<style>

</style>

<?php
echo $html->css('agropatria_vehiculos.css')."\n";
echo $html->css($css_for_layout)."\n";
echo $html->css('jscal2')."\n";
echo $javascript->link('prototype')."\n";
echo $javascript->link('scriptaculous.js?load=effects,slider')."\n";
echo $javascript->link('js')."\n";
echo $javascript->link('jscal')."\n";
echo $javascript->link('es')."\n";


?>

</head>


<body marginheight="0" marginwidth="0" id="body">
<div id="msj_cancelar" onClick="quitarul('msj_cancelar')"></div>
<div id="msj_aceptar" onClick="quitarul('msj_aceptar')"></div>


<? // echo '<div id="menu_veh" style="position: fixed; top:10px; left:0px; width:800px; height:1px; background-color:#00FF00; z-index:5000;">.</div>'; ?>
<? // echo '<div id="menu_veh" style="position: fixed; top:0px; left:10px; width:1px; height:600px; background-color:#00FF00; z-index:5000;">.</div>'; ?>

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td style="width:100%; height:80px;" colspan="2">
<div id="head_veh" style="position: fixed; top:0px; left:0px; width:100%; height:80px; background-color:#990000; background-image:url(../img/layout_vehiculo/head_fondo_1.png);">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td width="220px" style=" background-image:url(../img/layout_vehiculo/logo_agropatria.png); background-repeat:no-repeat;">
&nbsp;
<img src="../img/layout_vehiculo/trans_head.png"/>
</td>
<td width="150px">
<img src="../img/png/logotrans2.png"/><br />

					<span class="texto2">&nbsp;Direccion de  Finanzas.<br /></span>

					<span class="texto2">&nbsp;<i>SISTEMA DE GESTION Y CONTROL DE VEHICULOS.</i><br /></span>

					

					<span class="texto2">&nbsp;<? echo "Tu  Sistema Operativo es ".$CurrOS;?><br /></span>

					<span class="texto2">&nbsp;<?php

if($_SERVER['REMOTE_ADDR']=='127.0.0.1')

$ip = 'el Servidor';
else if($_SERVER['REMOTE_ADDR']=='1')
$ip = 'el Servidor';
else
$ip = 'la Ip: '.$_SERVER['REMOTE_ADDR'];



echo "Conectado desde ".$ip;?><br /></span>

<span class="texto2">&nbsp;Otra informacion: XXXXXXXX<br /><br /></span>
</td>
<td>&nbsp;

</td>
<td width="200px">

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td>&nbsp;

</td>
<td height="15px" align="right">
<span class="texto2">&nbsp;<? echo date('d/m/Y') ?>&nbsp;<br /></span>
<span class="texto2">&nbsp;Usuario: <? echo $_SESSION['username']; ?>&nbsp;</span>
</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td colspan="2" height="10px">
<table border="0" cellpadding="2" cellspacing="2" width="100%">
<tr>
<td>&nbsp;

</td>
<td width="5px" title="INICIO">
<? echo $cargar->linkng('botones','',$cargar->botones('casita','nav_logo27.png','no'),'/inicio/inicio','cont_veh');?>
</td>

<td width="5px" title="AYUDA">
<a href="/ayuda.pdf" onClick="window.open(this.href,'ayuda','width=900,height=600,'); return false;" style="text-decoration:none;"><? echo $cargar->botones('ayuda','nav_logo27.png','no');?></a>
</td>

<td width="5px" title="FUNCIONES">
<? //echo $cargar->linkng('botones','',$cargar->botones('sms','nav_logo27.png','no'),'/usuarios/derechos_de_autor','cont_veh');
echo $cargar->linkng('botones','',$cargar->botones('sms','nav_logo27.png','no'),'/configuraciones/copyrigth','cont_veh');

?>
</td>

<td width="5px" title="CERRAR SESION">
<? echo $html->image('iconos/cerrar.png', array('alt'=>'Cerrar Session', 'title'=>'CERRAR SESION', 'border'=>'0', 'width'=>'25', 'height'=>'25', 'align'=>'absmiddle', 'url' => array('controller' => 'Entrada', 'action' => 'salir')));?>

</td>
</tr>
</table>



</td>
</tr>
</table>




</td>

</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="width:100%; height:9px;" colspan="2">
<div id="head_veh"></div>

</td>
</tr>
<tr>
<td>
	<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
	<tr>
	<td width='205px'>
	<img src="../img/layout_vehiculo/trans_menu.png"/>
	<div id="menu_veh" style="position: fixed; top:100px; left:5px; width:197px; height:auto;">
	

<? 
for($i=0;$i< count($menua);$i++)
{
if($menua[$i]['Menu']['display']==1)
$display="display:block";
else
$display="display:none";
?>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
 <tr>
 <td class="td_menu" height="22px" style="border-bottom: #FFFFFF 1px solid; cursor:pointer;">
  <a onClick="Effect.toggle('<?=$menua[$i]['Menu']['nombre'];?>','slide'); return false;"><div class="estilo1">&nbsp;<?=$menua[$i]['Menu']['nombre'];?></div></a>
 </td>
 <td class="td_menu" width="15px" height="22px" align="left" style="border-bottom: #FFFFFF 1px solid; cursor:pointer;">
<a onClick="Effect.toggle('<?=$menua[$i]['Menu']['nombre'];?>','slide'); return false;"><img src="img/layout_vehiculo/item_1.png" width="12" height="6" alt="0"  align="absmiddle" /></a>
 </td>
 </tr>
 <tr>
 <td colspan="2">
  <div id="<?=$menua[$i]['Menu']['nombre'];?>" style="<?=$display;?>">
  <div id="menuv">
 <ul>

<?	
        for($j=0;$j< count($menub);$j++)
	{
		if($menub[$j]['Menu']['padre']==$menua[$i]['Menu']['id'])
		{
		  echo "<li>".$cargar->linkmenu('','&nbsp;'.$menub[$j]['Menu']['nombre'],$menub[$j]['Menu']['ruta'],'cont_veh',$menub[$j]['Menu']['ruta'].'/'.$menub[$j]['Menu']['modelo'])."</li>";

		}
	}
?>
 </ul></div> </div></td></tr></table>
<? }?>



</div>
	</td>
	<td>

<div id="cont_veh" class="redondo" >


<table border="0" width="100%" height="100%"><tr><td align="center"><p>&nbsp;contenedor principal_normal</p></td></tr></table>

</div>


<div id="busqueda" style=" position:fixed; bottom:1px; left:0px; width:210px; height:auto;"><table border="0" width="100%" height="100%"><tr><td align="center">
Busqueda Rapida:

<?php /* ^\d\.]+/g */ echo $form->input('dondebusca',array
('id'=>'dondebusca','label'=>false,'maxlength'=>'100','readonly'=>'false','type'=>'hidden','div'=>false,'error'=>false,'size'=>'11','class'=>'inputn','value'=>'','empty'=>'false'));?>

<?php /* ^\d\.]+/g */ echo $form->input('busca',array
('id'=>'busca','label'=>false,'maxlength'=>'100','readonly'=>'false','type'=>'text','div'=>false,'error'=>false,'size'=>'11','class'=>'buscar2','value'=>'','empty'=>'false','onkeyup'=>"input_cuatro('/configuraciones/buscador','cont_veh','dondebusca','busca','busca','busca')"));?>

<?php /*echo $form->input('busca',array
('id'=>'busca','label'=>false,'maxlength'=>'100','readonly'=>'false','type'=>'text','div'=>false,'error'=>false,'size'=>'11','class'=>'buscar2','value'=>'','empty'=>'false','onkeyup'=>"input_cuatro('/configuraciones/buscador','cont_veh','dondebusca','busca','busca','busca')",'onMouseOut'=>"input_cuatro('/configuraciones/buscador','cont_veh','dondebusca','busca','busca','busca')"));*/?>



</td></tr></table></div>
	</td>
	</tr>
	<table>
</td>
</tr>
<table>








</body>
</html>
